class Planet extends GameObject
{
  int rad;
  color planetColor;
  float bounceFactor;
  Planet(int xin, int yin, int massin, int radin, color colorin)
  {
    super(xin, yin, massin);
    rad = radin;
    planetColor = colorin;
    bounceFactor = random(0,1);
  }
 
  
  void draw(Camera c)
  {
    if(((position.x + rad*2) > (c.position.x - (width/2))) && ((position.x - rad*2) < c.position.x + (width/2)) && ((position.y + rad*2) > c.position.y - (height/2)) && ((position.y - rad*2)< c.position.y + (height/2)))
    {
      fill(planetColor);
      stroke(planetColor);
      ellipse(position.x + (width/2 - c.position.x), position.y + (height/2 - c.position.y), rad*2, rad*2); 
    }else{
      //println(position.x + ", " + rad + ", " + c.position.x + ", " + width/2 );
    }
  }
  
  void applyPlanetGravity()
  {
    //Override superclasses version of this method so it does nothing
  }
}

